package com.lys.emsystem.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lys.emsystem.entity.ChartData;
import com.lys.emsystem.entity.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lys.emsystem.vo.StuJobVo;
import com.lys.emsystem.vo.TeacherVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author liyansheng
 * @since 2022-04-27
 */
@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {

    IPage<Teacher> search(Page<Teacher> page, @Param("teacherVo") TeacherVo teacherVo);

    Teacher selectTeacherById(@Param("userId") Integer userId);

    List<StuJobVo> getStuJobStatus(@Param("userId") Integer userId);

    List<ChartData> selectEmpStatusIsTrue(@Param("userId") Integer userId);
}
